<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {
	// 登录验证
    public function verify_login(){
    	$this->assign("controllerName",CONTROLLER_NAME);
    	$apply = M('apply');
    	$newMessage = $apply->order("time desc")->limit(3)->select();
    	$this->assign('newMessage',$newMessage);
    	$value = cookie('tianjiao_account_id');
        if(empty($value)){
        	$this->redirect('Login/index');
        }
    }
}